[tryton-debian-vcs] tryton-modules-company branch debian updated. debian/4.4.1-1-4-gb175f72
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Fri Nov 10 12:10:13 UTC 2017
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-company.git;a=commitdiff;h=debian/4.4.1-1-4-gb175f72
commit b175f723c7ef86690a13737b2dab259c306b68ed
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Nov 7 16:24:45 2017 +0100
Releasing debian version 4.6.0-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index ac6be39..934f06a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-company (4.6.0-1) unstable; urgency=medium
+
+ * Bump the Standards-Version to 4.1.1, no changes needed.
+ * Merging upstream version 4.6.0.
+ * Use https in the watch file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 07 Nov 2017 10:20:06 +0100
+
tryton-modules-company (4.4.1-1) unstable; urgency=medium
* Bump the Standards-Version to 4.1.0, no changes needed.
commit 161d94f21cfe33950476a32b82236f43fb75c7a7
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Nov 7 10:16:46 2017 +0100
Use https in the watch file.
diff --git a/debian/watch b/debian/watch
index fa96cd0..2d62d7e 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
version=3
-opts=pgpsigurlmangle=s/$/.asc/ http://downloads.tryton.org/current/ .*trytond_company-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
+opts=pgpsigurlmangle=s/$/.asc/ https://downloads.tryton.org/current/ .*trytond_company-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
commit 1f4b96ee80bb34c8fea6108e6ea1d8cc07988504
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Nov 6 14:40:41 2017 +0100
Merging upstream version 4.6.0.
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..e0bc2f7
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,51 @@
+clone:
+ hg:
+ image: plugins/hg
+
+pipeline:
+ tox:
+ image: ${IMAGE}
+ environment:
+ - CFLAGS=-O0
+ - DB_CACHE=/cache
+ - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE
+ - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
+ commands:
+ - pip install tox
+ - tox -e "${TOXENV}-${DATABASE}"
+ volumes:
+ - cache:/root/.cache
+
+services:
+ postgresql:
+ image: postgres
+ when:
+ matrix:
+ DATABASE: postgresql
+
+matrix:
+ include:
+ - IMAGE: python:2.7
+ TOXENV: py27
+ DATABASE: sqlite
+ - IMAGE: python:2.7
+ TOXENV: py27
+ DATABASE: postgresql
+ - IMAGE: python:3.4
+ TOXENV: py34
+ DATABASE: sqlite
+ - IMAGE: python:3.4
+ TOXENV: py34
+ DATABASE: postgresql
+ - IMAGE: python:3.5
+ TOXENV: py35
+ DATABASE: sqlite
+ - IMAGE: python:3.5
+ TOXENV: py35
+ DATABASE: postgresql
+ - IMAGE: python:3.6
+ TOXENV: py36
+ DATABASE: sqlite
+ - IMAGE: python:3.6
+ TOXENV: py36
+ DATABASE: postgresql
diff --git a/CHANGELOG b/CHANGELOG
index 3176b18..fb06043 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,6 @@
-Version 4.4.1 - 2017-09-04
+Version 4.6.0 - 2017-10-30
* Bug fixes (see mercurial logs for details)
+* Allow root to behave as any company or employee
Version 4.4.0 - 2017-05-01
* Bug fixes (see mercurial logs for details)
diff --git a/MANIFEST.in b/MANIFEST.in
index 325b079..9cd4591 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -6,6 +6,6 @@ include LICENSE
include tryton.cfg
include *.xml
include view/*.xml
-include *.odt
+include *.fodt
include locale/*.po
include doc/*
diff --git a/PKG-INFO b/PKG-INFO
index b243905..edbe219 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_company
-Version: 4.4.1
+Version: 4.6.0
Summary: Tryton module with companies and employees
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: issue_tracker at tryton.org
License: GPL-3
-Download-URL: http://downloads.tryton.org/4.4/
+Download-URL: http://downloads.tryton.org/4.6/
Description: trytond_company
===============
@@ -70,9 +70,9 @@ Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Office/Business
diff --git a/company.py b/company.py
index b89e593..151f936 100644
--- a/company.py
+++ b/company.py
@@ -53,7 +53,7 @@ class Company(ModelSQL, ModelView):
@classmethod
def search_rec_name(cls, name, clause):
- return [('party',) + tuple(clause[1:])]
+ return [('party.rec_name',) + tuple(clause[1:])]
@classmethod
def write(cls, companies, values, *args):
@@ -95,7 +95,8 @@ class Employee(ModelSQL, ModelView):
@classmethod
def search_rec_name(cls, name, clause):
- return [('party',) + tuple(clause[1:])]
+ return [('party.rec_name',) + tuple(clause[1:])]
+
class UserEmployee(ModelSQL):
'User - Employee'
@@ -266,7 +267,8 @@ class User:
])
company_id = Transaction().context['company']
if ((company_id and company_id in map(int, companies))
- or not company_id):
+ or not company_id
+ or Transaction().user == 0):
values['company'] = company_id
if ('employee' in fields_names
and 'employee' in Transaction().context):
@@ -275,7 +277,9 @@ class User:
employees = cls.read([user_id],
['employees'])[0]['employees']
employee_id = Transaction().context['employee']
- if employee_id and employee_id in employees:
+ if ((employee_id and employee_id in employees)
+ or not employee_id
+ or Transaction().user == 0):
values['employee'] = employee_id
return result
diff --git a/company.xml b/company.xml
index fa20e4d..cfa7dc1 100644
--- a/company.xml
+++ b/company.xml
@@ -195,7 +195,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Letter</field>
<field name="model">party.party</field>
<field name="report_name">party.letter</field>
- <field name="report">company/letter.odt</field>
+ <field name="report">company/letter.fodt</field>
</record>
<record model="ir.action.keyword" id="report_letter_party">
<field name="keyword">form_print</field>
diff --git a/letter.fodt b/letter.fodt
new file mode 100644
index 0000000..07f844c
--- /dev/null
+++ b/letter.fodt
@@ -0,0 +1,357 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text">
+ <office:meta><meta:generator>LibreOffice/5.2.7.2$Linux_X86_64 LibreOffice_project/20m0$Build-2</meta:generator><meta:creation-date>2008-08-23T01:06:24</meta:creation-date><dc:date>2008-10-22T19:27:10</dc:date><meta:editing-cycles>1</meta:editing-cycles><meta:editing-duration>PT0S</meta:editing-duration><meta:document-statistic meta:character-count="507" meta:image-count="0" meta:non-whitespace-character-count="481" meta:object-count="0" meta:page-count="2" meta:paragraph-count="22" meta:table-count="0" meta:word-count="48"/><meta:user-defined meta:name="Info 1"/><meta:user-defined meta:name="Info 2"/><meta:user-defined meta:name="Info 3"/><meta:user-defined meta:name="Info 4"/></office:meta>
+ <office:settings>
+ <config:config-item-set config:name="ooo:view-settings">
+ <config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item>
+ <config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item>
+ <config:config-item config:name="ViewAreaWidth" config:type="long">43760</config:config-item>
+ <config:config-item config:name="ViewAreaHeight" config:type="long">21691</config:config-item>
+ <config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item>
+ <config:config-item-map-indexed config:name="Views">
+ <config:config-item-map-entry>
+ <config:config-item config:name="ViewId" config:type="string">view2</config:config-item>
+ <config:config-item config:name="ViewLeft" config:type="long">13085</config:config-item>
+ <config:config-item config:name="ViewTop" config:type="long">5313</config:config-item>
+ <config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item>
+ <config:config-item config:name="VisibleTop" config:type="long">0</config:config-item>
+ <config:config-item config:name="VisibleRight" config:type="long">43759</config:config-item>
+ <config:config-item config:name="VisibleBottom" config:type="long">21689</config:config-item>
+ <config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
+ <config:config-item config:name="ViewLayoutColumns" config:type="short">0</config:config-item>
+ <config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item>
+ <config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item>
+ </config:config-item-map-entry>
+ </config:config-item-map-indexed>
+ </config:config-item-set>
+ <config:config-item-set config:name="ooo:configuration-settings">
+ <config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item>
+ <config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintFaxName" config:type="string"/>
+ <config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="TabOverflow" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="SmallCapsPercentage66" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="MathBaselineAlignment" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrinterName" config:type="string"/>
+ <config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="EmbeddedDatabaseName" config:type="string"/>
+ <config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="Rsid" config:type="int">886152</config:config-item>
+ <config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="ApplyUserData" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item>
+ <config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item>
+ <config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="CurrentDatabaseDataSource" config:type="string">Adressen</config:config-item>
+ <config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/>
+ <config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="RsidRoot" config:type="int">222920</config:config-item>
+ <config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item>
+ <config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item>
+ <config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item>
+ <config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item>
+ <config:config-item config:name="CurrentDatabaseCommand" config:type="string"/>
+ <config:config-item config:name="PrinterSetup" config:type="base64Binary"/>
+ <config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item>
+ </config:config-item-set>
+ </office:settings>
+ <office:scripts>
+ <office:script script:language="ooo:Basic">
+ <ooo:libraries xmlns:ooo="http://openoffice.org/2004/office" xmlns:xlink="http://www.w3.org/1999/xlink"/>
+ </office:script>
+ </office:scripts>
+ <office:font-face-decls>
+ <style:font-face style:name="StarSymbol" svg:font-family="StarSymbol"/>
+ <style:font-face style:name="Liberation Serif1" svg:font-family="'Liberation Serif'" style:font-adornments="Bold" style:font-family-generic="roman" style:font-pitch="variable"/>
+ <style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-adornments="Regular" style:font-family-generic="roman" style:font-pitch="variable"/>
+ <style:font-face style:name="Thorndale AMT" svg:font-family="'Thorndale AMT'" style:font-family-generic="roman" style:font-pitch="variable"/>
+ <style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-adornments="Regular" style:font-family-generic="swiss" style:font-pitch="variable"/>
+ <style:font-face style:name="Andale Sans UI" svg:font-family="'Andale Sans UI'" style:font-family-generic="system" style:font-pitch="variable"/>
+ <style:font-face style:name="DejaVu Sans" svg:font-family="'DejaVu Sans'" style:font-family-generic="system" style:font-pitch="variable"/>
+ </office:font-face-decls>
+ <office:styles>
+ <style:default-style style:family="graphic">
+ <style:graphic-properties svg:stroke-color="#000000" draw:fill-color="#99ccff" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/>
+ <style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false">
+ <style:tab-stops/>
+ </style:paragraph-properties>
+ <style:text-properties style:use-window-font-color="true" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none"/>
+ </style:default-style>
+ <style:default-style style:family="paragraph">
+ <style:paragraph-properties fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="lr-tb"/>
+ <style:text-properties style:use-window-font-color="true" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>
+ </style:default-style>
+ <style:default-style style:family="table">
+ <style:table-properties table:border-model="collapsing"/>
+ </style:default-style>
+ <style:default-style style:family="table-row">
+ <style:table-row-properties fo:keep-together="auto"/>
+ </style:default-style>
+ <style:style style:name="Standard" style:family="paragraph" style:class="text">
+ <style:text-properties style:font-name="Liberation Sans" fo:font-family="'Liberation Sans'" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
+ </style:style>
+ <style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
+ <style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false" fo:keep-with-next="always"/>
+ <style:text-properties style:font-name="Liberation Serif" fo:font-family="'Liberation Serif'" style:font-style-name="Regular" style:font-family-generic="roman" style:font-pitch="variable" fo:font-size="16pt" style:font-name-asian="DejaVu Sans" style:font-family-asian="'DejaVu Sans'" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="DejaVu Sans" style:font-family-complex="'DejaVu Sans'" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/>
+ </style:style>
+ <style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
+ <style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false"/>
+ <style:text-properties style:font-name="Liberation Sans" fo:font-family="'Liberation Sans'" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
+ </style:style>
+ <style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list">
+ <style:text-properties style:font-size-asian="12pt"/>
+ </style:style>
+ <style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
+ <style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false" text:number-lines="false" text:line-number="0"/>
+ <style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/>
+ </style:style>
+ <style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index">
+ <style:paragraph-properties text:number-lines="false" text:line-number="0"/>
+ <style:text-properties style:font-size-asian="12pt"/>
+ </style:style>
+ <style:style style:name="Heading_20_1" style:display-name="Heading 1" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
+ <style:text-properties fo:font-size="16pt" fo:font-weight="bold" style:font-size-asian="115%" style:font-weight-asian="bold" style:font-size-complex="115%" style:font-weight-complex="bold"/>
+ </style:style>
+ <style:style style:name="Table_20_Contents" style:display-name="Table Contents" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
+ <style:paragraph-properties text:number-lines="false" text:line-number="0"/>
+ <style:text-properties style:font-size-asian="10.5pt"/>
+ </style:style>
+ <style:style style:name="Table_20_Heading" style:display-name="Table Heading" style:family="paragraph" style:parent-style-name="Table_20_Contents" style:class="extra" style:master-page-name="">
+ <style:paragraph-properties fo:text-align="center" style:justify-single-word="false" style:page-number="auto" text:number-lines="false" text:line-number="0"/>
+ <style:text-properties style:font-name="Liberation Serif1" fo:font-family="'Liberation Serif'" style:font-style-name="Bold" style:font-family-generic="roman" style:font-pitch="variable" fo:font-weight="bold" style:font-size-asian="10.5pt" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
+ </style:style>
+ <style:style style:name="Header" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
+ <style:paragraph-properties text:number-lines="false" text:line-number="0">
+ <style:tab-stops>
+ <style:tab-stop style:position="3.4626in" style:type="center"/>
+ <style:tab-stop style:position="6.9252in" style:type="right"/>
+ </style:tab-stops>
+ </style:paragraph-properties>
+ <style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
+ </style:style>
+ <style:style style:name="Heading_20_2" style:display-name="Heading 2" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
+ <style:text-properties fo:font-size="14pt" fo:font-style="italic" fo:font-weight="bold" style:font-size-asian="14pt" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-style-complex="italic" style:font-weight-complex="bold"/>
+ </style:style>
+ <style:style style:name="Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
+ <style:paragraph-properties text:number-lines="false" text:line-number="0">
+ <style:tab-stops>
+ <style:tab-stop style:position="3.4626in" style:type="center"/>
+ <style:tab-stop style:position="6.9252in" style:type="right"/>
+ </style:tab-stops>
+ </style:paragraph-properties>
+ <style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
+ </style:style>
+ <style:style style:name="Heading_20_3" style:display-name="Heading 3" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
+ <style:text-properties fo:font-size="14pt" fo:font-weight="bold" style:font-size-asian="14pt" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-weight-complex="bold"/>
+ </style:style>
+ <style:style style:name="Text_20_body_20_indent" style:display-name="Text body indent" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="text">
+ <style:paragraph-properties fo:margin-left="0.1965in" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
+ </style:style>
+ <style:style style:name="Text" style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
+ <style:style style:name="Placeholder" style:family="text">
+ <style:text-properties fo:font-variant="small-caps" fo:color="#008080" style:text-underline-style="dotted" style:text-underline-width="auto" style:text-underline-color="font-color"/>
+ </style:style>
+ <style:style style:name="Bullet_20_Symbols" style:display-name="Bullet Symbols" style:family="text">
+ <style:text-properties style:font-name="StarSymbol" fo:font-family="StarSymbol" fo:font-size="9pt" style:font-name-asian="StarSymbol" style:font-family-asian="StarSymbol" style:font-size-asian="9pt" style:font-name-complex="StarSymbol" style:font-family-complex="StarSymbol" style:font-size-complex="9pt"/>
+ </style:style>
+ <text:outline-style style:name="Outline">
+ <text:outline-level-style text:level="1" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="2" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="3" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="4" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="5" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="6" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="7" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="8" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="9" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ <text:outline-level-style text:level="10" style:num-format="">
+ <style:list-level-properties text:min-label-distance="0.15in"/>
+ </text:outline-level-style>
+ </text:outline-style>
+ <text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/>
+ <text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/>
+ <text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/>
+ </office:styles>
+ <office:automatic-styles>
+ <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Header">
+ <style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
+ <style:text-properties officeooo:paragraph-rsid="0009d979"/>
+ </style:style>
+ <style:style style:name="P2" style:family="paragraph" style:parent-style-name="Footer">
+ <style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
+ <style:text-properties officeooo:paragraph-rsid="0009d979"/>
+ </style:style>
+ <style:style style:name="P3" style:family="paragraph" style:parent-style-name="Header">
+ <style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
+ <style:text-properties fo:font-size="12pt" officeooo:paragraph-rsid="0009d979" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
+ </style:style>
+ <style:style style:name="P4" style:family="paragraph" style:parent-style-name="Header">
+ <style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
+ <style:text-properties officeooo:paragraph-rsid="0009d979"/>
+ </style:style>
+ <style:style style:name="P5" style:family="paragraph" style:parent-style-name="Header">
+ <style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
+ <style:text-properties fo:font-size="12pt" officeooo:paragraph-rsid="0009d979" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
+ </style:style>
+ <style:style style:name="P6" style:family="paragraph" style:parent-style-name="Footer">
+ <style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
+ <style:text-properties officeooo:paragraph-rsid="0009d979"/>
+ </style:style>
+ <style:style style:name="P7" style:family="paragraph" style:parent-style-name="Text_20_body">
+ <style:paragraph-properties fo:margin-top="0.2756in" fo:margin-bottom="0.0827in" loext:contextual-spacing="false"/>
+ </style:style>
+ <style:style style:name="P8" style:family="paragraph" style:parent-style-name="Text_20_body">
+ <style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0827in" loext:contextual-spacing="false"/>
+ </style:style>
+ <style:style style:name="P9" style:family="paragraph" style:parent-style-name="Standard" style:master-page-name="">
+ <style:paragraph-properties style:page-number="auto" fo:break-before="page"/>
+ </style:style>
+ <style:style style:name="P10" style:family="paragraph" style:parent-style-name="Text_20_body">
+ <style:paragraph-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0.2756in" fo:margin-bottom="0.0827in" loext:contextual-spacing="false" fo:text-indent="0.7874in" style:auto-text-indent="false"/>
+ </style:style>
+ <style:style style:name="P11" style:family="paragraph" style:parent-style-name="Text_20_body">
+ <style:paragraph-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0.2756in" fo:margin-bottom="0.0827in" loext:contextual-spacing="false" fo:text-indent="0in" style:auto-text-indent="true"/>
+ </style:style>
+ <style:style style:name="P12" style:family="paragraph" style:parent-style-name="Text_20_body">
+ <style:paragraph-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0.0827in" loext:contextual-spacing="false" fo:text-indent="0in" style:auto-text-indent="true"/>
+ </style:style>
+ <style:style style:name="P13" style:family="paragraph" style:parent-style-name="Text_20_body" style:master-page-name="">
+ <style:paragraph-properties fo:margin-left="0in" fo:margin-right="0.7874in" fo:margin-top="0in" fo:margin-bottom="0.0827in" loext:contextual-spacing="false" fo:text-align="end" style:justify-single-word="false" fo:text-indent="0in" style:auto-text-indent="false" style:page-number="auto" style:shadow="none"/>
+ </style:style>
+ <style:style style:name="P14" style:family="paragraph" style:parent-style-name="Standard">
+ <style:paragraph-properties fo:margin-left="4.4409in" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
+ </style:style>
+ <style:style style:name="P15" style:family="paragraph" style:parent-style-name="Standard">
+ <style:paragraph-properties fo:margin-left="4.4409in" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false" fo:break-before="page"/>
+ </style:style>
+ <style:page-layout style:name="pm1">
+ <style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="44" style:layout-grid-base-height="0.2165in" style:layout-grid-ruby-height="0in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="true" style:layout-grid-display="true" style:footnote-max-height="0in">
+ <style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="none" style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
+ </style:page-layout-properties>
+ <style:header-style>
+ <style:header-footer-properties fo:min-height="0in" fo:margin-left="0in" fo:margin-right="0in" fo:margin-bottom="0.1965in"/>
+ </style:header-style>
+ <style:footer-style>
+ <style:header-footer-properties fo:min-height="0in" fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0.1965in"/>
+ </style:footer-style>
+ </style:page-layout>
+ </office:automatic-styles>
+ <office:master-styles>
+ <style:master-page style:name="Standard" style:page-layout-name="pm1">
+ <style:header>
+ <text:p text:style-name="P1"><text:placeholder text:placeholder-type="text"><if test="company.header"></text:placeholder></text:p>
+ <text:p text:style-name="P1"><text:placeholder text:placeholder-type="text"><for each="line in company.header.split('\n')"></text:placeholder></text:p>
+ <text:p text:style-name="P1"><text:placeholder text:placeholder-type="text"><line></text:placeholder></text:p>
+ <text:p text:style-name="P1"><text:placeholder text:placeholder-type="text"></for></text:placeholder></text:p>
+ <text:p text:style-name="P2"><text:placeholder text:placeholder-type="text"></if></text:placeholder></text:p>
+ <text:p text:style-name="P3"><text:placeholder text:placeholder-type="text"><company.rec_name></text:placeholder></text:p>
+ </style:header>
+ <style:footer>
+ <text:p text:style-name="P2"><text:placeholder text:placeholder-type="text"><if test="company.footer"></text:placeholder></text:p>
+ <text:p text:style-name="P2"><text:placeholder text:placeholder-type="text"><for each="line in company.footer.split('\n')"></text:placeholder></text:p>
+ <text:p text:style-name="P2"><text:placeholder text:placeholder-type="text"><line></text:placeholder></text:p>
+ <text:p text:style-name="P2"><text:placeholder text:placeholder-type="text"></for></text:placeholder></text:p>
+ <text:p text:style-name="P2"><text:placeholder text:placeholder-type="text"></if></text:placeholder></text:p>
+ </style:footer>
+ </style:master-page>
+ </office:master-styles>
+ <office:body>
+ <office:text text:use-soft-page-breaks="true">
+ <office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
+ <text:sequence-decls>
+ <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
+ <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
+ <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
+ <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
+ </text:sequence-decls>
+ <text:p text:style-name="P9"><text:placeholder text:placeholder-type="text"><for each="party in records"></text:placeholder></text:p>
+ <text:p text:style-name="P15"><text:placeholder text:placeholder-type="text"><set_lang(party.lang and party.lang.code or 'en')></text:placeholder><text:placeholder text:placeholder-type="text"><if test="party.addresses"></text:placeholder></text:p>
+ <text:p text:style-name="P14"><text:placeholder text:placeholder-type="text"><for each="line in party.addresses[0].full_address.split('\n')"></text:placeholder></text:p>
+ <text:p text:style-name="P14"><text:placeholder text:placeholder-type="text"><line></text:placeholder></text:p>
+ <text:p text:style-name="P14"><text:placeholder text:placeholder-type="text"></for></text:placeholder></text:p>
+ <text:p text:style-name="P14"><text:placeholder text:placeholder-type="text"></if></text:placeholder></text:p>
+ <text:p text:style-name="P7">Date: <text:placeholder text:placeholder-type="text"><format_date(datetime.date.today(), party.lang)></text:placeholder><text:line-break/>Subject:</text:p>
+ <text:p text:style-name="P11">Dear Madams and Sirs,</text:p>
+ <text:p text:style-name="P12"/>
+ <text:p text:style-name="P10">Best Regards,</text:p>
+ <text:p text:style-name="P13"><text:placeholder text:placeholder-type="text"><user.signature></text:placeholder></text:p>
+ <text:p text:style-name="P8"><text:placeholder text:placeholder-type="text"></for></text:placeholder></text:p>
+ </office:text>
+ </office:body>
+</office:document>
\ No newline at end of file
diff --git a/letter.odt b/letter.odt
deleted file mode 100644
index 4e05524..0000000
Binary files a/letter.odt and /dev/null differ
diff --git a/locale/bg.po b/locale/bg.po
index 9f7a6d1..ae6a2af 100644
--- a/locale/bg.po
+++ b/locale/bg.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Партньор"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Име"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:company.company,timezone:"
@@ -88,8 +88,8 @@ msgid "Party"
msgstr "Партньор"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Име"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -128,8 +128,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Име"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -196,8 +196,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Име на прикачен файл"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/ca.po b/locale/ca.po
index 64665cb..40a85cb 100644
--- a/locale/ca.po
+++ b/locale/ca.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Tercer"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Tercer"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/cs.po b/locale/cs.po
index e148076..40ba6c9 100644
--- a/locale/cs.po
+++ b/locale/cs.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -42,10 +42,9 @@ msgctxt "field:company.company,party:"
msgid "Party"
msgstr ""
-#, fuzzy
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,10 +86,9 @@ msgctxt "field:company.employee,party:"
msgid "Party"
msgstr ""
-#, fuzzy
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -128,10 +126,9 @@ msgctxt "field:ir.cron-company.company,id:"
msgid "ID"
msgstr ""
-#, fuzzy
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -193,10 +190,9 @@ msgctxt "field:res.user-company.employee,id:"
msgid "ID"
msgstr ""
-#, fuzzy
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/de.po b/locale/de.po
index dbf332f..bdaba07 100644
--- a/locale/de.po
+++ b/locale/de.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Partei"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Partei"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/es.po b/locale/es.po
index ad7e262..c908a7e 100644
--- a/locale/es.po
+++ b/locale/es.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Tercero"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Tercero"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/es_419.po b/locale/es_419.po
index 9ea9db6..779afc6 100644
--- a/locale/es_419.po
+++ b/locale/es_419.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,7 +43,7 @@ msgid "Party"
msgstr ""
msgctxt "field:company.company,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:company.company,timezone:"
@@ -87,7 +87,7 @@ msgid "Party"
msgstr ""
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:company.employee,start_date:"
@@ -127,7 +127,7 @@ msgid "ID"
msgstr ""
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
@@ -191,7 +191,7 @@ msgid "ID"
msgstr ""
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:res.user-company.employee,user:"
diff --git a/locale/fr.po b/locale/fr.po
index 8a370ca..59b7223 100644
--- a/locale/fr.po
+++ b/locale/fr.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Tiers"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Tiers"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/hu_HU.po b/locale/hu_HU.po
index d0dc4d6..d40e7c6 100644
--- a/locale/hu_HU.po
+++ b/locale/hu_HU.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Partner"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Partner"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -194,8 +194,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/it_IT.po b/locale/it_IT.po
index 9785707..9cd38f6 100644
--- a/locale/it_IT.po
+++ b/locale/it_IT.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -48,10 +48,9 @@ msgctxt "field:company.company,party:"
msgid "Party"
msgstr "Controparti"
-#, fuzzy
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -100,10 +99,9 @@ msgctxt "field:company.employee,party:"
msgid "Party"
msgstr "Controparti"
-#, fuzzy
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -147,10 +145,9 @@ msgctxt "field:ir.cron-company.company,id:"
msgid "ID"
msgstr "ID"
-#, fuzzy
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:ir.cron-company.company,write_date:"
@@ -220,10 +217,9 @@ msgctxt "field:res.user-company.employee,id:"
msgid "ID"
msgstr "ID"
-#, fuzzy
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:res.user-company.employee,user:"
diff --git a/locale/ja_JP.po b/locale/ja_JP.po
index 19fc0a1..06f38ce 100644
--- a/locale/ja_JP.po
+++ b/locale/ja_JP.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -44,7 +44,7 @@ msgid "Party"
msgstr ""
msgctxt "field:company.company,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:company.company,timezone:"
@@ -88,7 +88,7 @@ msgid "Party"
msgstr ""
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:company.employee,start_date:"
@@ -129,7 +129,7 @@ msgid "ID"
msgstr ""
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
@@ -196,7 +196,7 @@ msgid "ID"
msgstr ""
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
+msgid "Record Name"
msgstr ""
msgctxt "field:res.user-company.employee,user:"
diff --git a/locale/lo.po b/locale/lo.po
index a3c0765..c01f66f 100644
--- a/locale/lo.po
+++ b/locale/lo.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "ພາກສ່ວນ"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "ພາກສ່ວນ"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ເລກລຳດັບ"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -194,8 +194,8 @@ msgid "ID"
msgstr "ເລກລຳດັບ"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/lt.po b/locale/lt.po
index e148076..40ba6c9 100644
--- a/locale/lt.po
+++ b/locale/lt.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -42,10 +42,9 @@ msgctxt "field:company.company,party:"
msgid "Party"
msgstr ""
-#, fuzzy
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,10 +86,9 @@ msgctxt "field:company.employee,party:"
msgid "Party"
msgstr ""
-#, fuzzy
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -128,10 +126,9 @@ msgctxt "field:ir.cron-company.company,id:"
msgid "ID"
msgstr ""
-#, fuzzy
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -193,10 +190,9 @@ msgctxt "field:res.user-company.employee,id:"
msgid "ID"
msgstr ""
-#, fuzzy
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/nl.po b/locale/nl.po
index 25e5240..ea87598 100644
--- a/locale/nl.po
+++ b/locale/nl.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -46,8 +46,8 @@ msgid "Party"
msgstr "Relatie"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Naam"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -96,8 +96,8 @@ msgid "Party"
msgstr "Relatie"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Naam"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -141,8 +141,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Naam"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:ir.cron-company.company,write_date:"
@@ -215,10 +215,9 @@ msgctxt "field:res.user-company.employee,id:"
msgid "ID"
msgstr "ID"
-#, fuzzy
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:res.user-company.employee,user:"
diff --git a/locale/pl.po b/locale/pl.po
index 33c7c97..10dbdd3 100644
--- a/locale/pl.po
+++ b/locale/pl.po
@@ -1,10 +1,10 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:company.company,childs:"
msgid "Children"
-msgstr "Firmy córki"
+msgstr "Firmy podrzędne."
msgctxt "field:company.company,create_date:"
msgid "Create Date"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Strona"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Nazwa"
+msgid "Record Name"
+msgstr "Nazwa rekordu"
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Strona"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Nazwa"
+msgid "Record Name"
+msgstr "Nazwa rekordu"
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Nazwa"
+msgid "Record Name"
+msgstr "Nazwa rekordu"
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -160,11 +160,11 @@ msgstr "Firmy"
msgctxt "field:res.user,company:"
msgid "Current Company"
-msgstr "Aktualna firma"
+msgstr "Obecna firma"
msgctxt "field:res.user,employee:"
msgid "Current Employee"
-msgstr "Aktualny pracownik"
+msgstr "Obecny pracownik"
msgctxt "field:res.user,employees:"
msgid "Employees"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Nazwa"
+msgid "Record Name"
+msgstr "Nazwa rekordu"
msgctxt "field:res.user-company.employee,user:"
msgid "User"
@@ -208,7 +208,7 @@ msgstr "Zapisał"
msgctxt "help:company.company,childs:"
msgid "Add children below the company."
-msgstr "Dodaj firmy zależne od firmy matki."
+msgstr "Dodaj firmy podrzędne."
msgctxt "help:company.company,currency:"
msgid "The main currency for the company."
@@ -232,7 +232,7 @@ msgstr "Wybierz firmę nadrzędną."
msgctxt "help:company.company,timezone:"
msgid "Used to compute the today date."
-msgstr "Służy do wznaczenia lokalnej daty."
+msgstr "Służy do wyznaczenia lokalnej daty."
msgctxt "help:company.employee,company:"
msgid "The company to which the employee belongs."
@@ -264,7 +264,7 @@ msgstr "Ograniczenie użycia sekwencji do firmy."
msgctxt "help:res.user,company:"
msgid "Select the company to work for."
-msgstr "Firma, w której użytkownik pracuje."
+msgstr "Wybór firmy, w której pracuje użytkownik."
msgctxt "help:res.user,employee:"
msgid "Select the employee to make the user behave as such."
@@ -276,7 +276,7 @@ msgstr "Pracownicy, do których użytkownik ma dostęp."
msgctxt "help:res.user,main_company:"
msgid "Grant access to the company and its children."
-msgstr "Przyznanie dostępu do firmy i jej córek."
+msgstr "Przyznanie dostępu do firmy i jej firm podrzędnych."
msgctxt "model:company.company,name:"
msgid "Company"
@@ -300,7 +300,7 @@ msgstr "Firmy"
msgctxt "model:ir.action,name:act_company_tree"
msgid "Companies"
-msgstr "Struktura firm"
+msgstr "Firmy"
msgctxt "model:ir.action,name:act_employee_form"
msgid "Employees"
@@ -320,7 +320,7 @@ msgstr "Firmy"
msgctxt "model:ir.ui.menu,name:menu_company_tree"
msgid "Companies"
-msgstr "Struktura firm"
+msgstr "Firmy"
msgctxt "model:ir.ui.menu,name:menu_employee_form"
msgid "Employees"
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
index 9be05dd..b70fa39 100644
--- a/locale/pt_BR.po
+++ b/locale/pt_BR.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Pessoa"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Pessoa"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/ru.po b/locale/ru.po
index 1fd7244..f9e1a2a 100644
--- a/locale/ru.po
+++ b/locale/ru.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Контрагент"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Наименование"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:company.company,timezone:"
@@ -88,8 +88,8 @@ msgid "Party"
msgstr "Контрагент"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Наименование"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -128,8 +128,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Наименование"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -195,8 +195,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Наименование"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/sl.po b/locale/sl.po
index 1a2bc8b..c885d8d 100644
--- a/locale/sl.po
+++ b/locale/sl.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -43,8 +43,8 @@ msgid "Party"
msgstr "Partner"
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -87,8 +87,8 @@ msgid "Party"
msgstr "Partner"
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -127,8 +127,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
msgctxt "field:ir.cron-company.company,write_date:"
msgid "Write Date"
@@ -191,8 +191,8 @@ msgid "ID"
msgstr "ID"
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
msgctxt "field:res.user-company.employee,user:"
msgid "User"
diff --git a/locale/zh_CN.po b/locale/zh_CN.po
index 21d444c..dec6694 100644
--- a/locale/zh_CN.po
+++ b/locale/zh_CN.po
@@ -1,4 +1,4 @@
-#
+#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
@@ -47,10 +47,9 @@ msgctxt "field:company.company,party:"
msgid "Party"
msgstr ""
-#, fuzzy
msgctxt "field:company.company,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.company,timezone:"
msgid "Timezone"
@@ -98,10 +97,9 @@ msgctxt "field:company.employee,party:"
msgid "Party"
msgstr ""
-#, fuzzy
msgctxt "field:company.employee,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
msgctxt "field:company.employee,start_date:"
msgid "Start Date"
@@ -145,10 +143,9 @@ msgctxt "field:ir.cron-company.company,id:"
msgid "ID"
msgstr "编号"
-#, fuzzy
msgctxt "field:ir.cron-company.company,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:ir.cron-company.company,write_date:"
@@ -215,10 +212,9 @@ msgctxt "field:res.user-company.employee,id:"
msgid "ID"
msgstr "编号"
-#, fuzzy
msgctxt "field:res.user-company.employee,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
#, fuzzy
msgctxt "field:res.user-company.employee,user:"
diff --git a/setup.py b/setup.py
index 495afc7..f62471f 100644
--- a/setup.py
+++ b/setup.py
@@ -69,7 +69,7 @@ setup(name=name,
],
package_data={
'trytond.modules.company': (info.get('xml', [])
- + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'letter.odt']),
+ + ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.fodt']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
@@ -97,9 +97,9 @@ setup(name=name,
'Natural Language :: Spanish',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Office/Business',
diff --git a/tests/test_company.py b/tests/test_company.py
index 1fb0ff1..a43b80b 100644
--- a/tests/test_company.py
+++ b/tests/test_company.py
@@ -29,6 +29,20 @@ def create_company(name='Dunder Mifflin', currency=None):
return company
+def create_employee(company, name="Pam Beesly"):
+ pool = Pool()
+ Party = pool.get('party.party')
+ Employee = pool.get('company.employee')
+
+ party, = Party.create([{
+ 'name': name,
+ 'addresses': [('create', [{}])],
+ }])
+ employee = Employee(party=party, company=company)
+ employee.save()
+ return employee
+
+
@contextmanager
def set_company(company):
pool = Pool()
@@ -86,7 +100,7 @@ class CompanyTestCase(ModuleTestCase):
self.assert_(employee)
@with_transaction()
- def test_user(self):
+ def test_user_company(self):
'Test user company'
pool = Pool()
User = pool.get('res.user')
@@ -97,6 +111,7 @@ class CompanyTestCase(ModuleTestCase):
currency=company1.currency)
company2.parent = company1
company2.save()
+ company3 = create_company()
user1, user2 = User.create([{
'name': 'Jim Halper',
@@ -126,6 +141,95 @@ class CompanyTestCase(ModuleTestCase):
self.assertEqual(user1.company, None)
self.assertEqual(user2.company, company2)
+ with transaction.set_context(company=company3.id):
+ user1, user2 = User.browse([user1.id, user2.id])
+ self.assertEqual(user1.company, company1)
+ self.assertEqual(user2.company, company2)
+
+ @with_transaction()
+ def test_user_root_company(self):
+ "Test root user company"
+ pool = Pool()
+ User = pool.get('res.user')
+ transaction = Transaction()
+ company = create_company()
+ root = User(0)
+ root.company = None
+ root.main_company = None
+ root.save()
+
+ with transaction.set_user(0):
+ with Transaction().set_context(company=company.id):
+ root = User(0)
+ self.assertEqual(root.company, company)
+
+ @with_transaction()
+ def test_user_employee(self):
+ "Test user employee"
+ pool = Pool()
+ User = pool.get('res.user')
+ transaction = Transaction()
+
+ company = create_company()
+
+ employee1 = create_employee(company, "Jim Halper")
+ employee2 = create_employee(company, "Pam Bessly")
+ employee3 = create_employee(company, "Michael Scott")
+
+ user1, user2 = User.create([{
+ 'name': "Jim Halper",
+ 'login': "jim",
+ 'main_company': company.id,
+ 'company': company.id,
+ 'employees': [('add', [employee1.id, employee2.id])],
+ 'employee': employee1.id,
+ }, {
+ 'name': "Pam Beesly",
+ 'login': "pam",
+ 'main_company': company.id,
+ 'company': company.id,
+ 'employees': [('add', [employee2.id])],
+ 'employee': employee2.id,
+ }])
+
+ with transaction.set_user(user1.id):
+ user1, user2 = User.browse([user1.id, user2.id])
+ self.assertEqual(user1.employee, employee1)
+ self.assertEqual(user2.employee, employee2)
+
+ with transaction.set_context(employee=employee2.id):
+ user1, user2 = User.browse([user1.id, user2.id])
+ self.assertEqual(user1.employee, employee2)
+ self.assertEqual(user2.employee, employee2)
+
+ with transaction.set_context(employee=None):
+ user1, user2 = User.browse([user1.id, user2.id])
+ self.assertEqual(user1.employee, None)
+ self.assertEqual(user2.employee, employee2)
+
+ with transaction.set_context(employee=employee3.id):
+ user1, user2 = User.browse([user1.id, user2.id])
+ self.assertEqual(user1.employee, employee1)
+ self.assertEqual(user2.employee, employee2)
+
+ @with_transaction()
+ def test_user_root_employee(self):
+ "Test root user employee"
+ pool = Pool()
+ User = pool.get('res.user')
+ transaction = Transaction()
+ company = create_company()
+ employee = create_employee(company, "Jim Halper")
+ root = User(0)
+ root.employee = None
+ root.employees = None
+ root.save()
+
+ with transaction.set_user(0):
+ with Transaction().set_context(employee=employee.id):
+ root = User(0)
+ self.assertEqual(root.employee, employee)
+
def suite():
suite = trytond.tests.test_tryton.suite()
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..527d859
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+envlist = {py27,py34,py35,py36}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
+
+[testenv]
+commands = {envpython} setup.py test
+deps =
+ {py27,py34,py35,py36}-postgresql: psycopg2 >= 2.5
+ pypy-postgresql: psycopg2cffi >= 2.5
+ mysql: MySQL-python
+ sqlite: sqlitebck
+setenv =
+ sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
+ postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
+ mysql: TRYTOND_DATABASE_URI={env:MYSQL_URI:mysql://}
+ sqlite: DB_NAME={env:SQLITE_NAME::memory:}
+ postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
+ mysql: DB_NAME={env:MYSQL_NAME:test}
+install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages}
diff --git a/tryton.cfg b/tryton.cfg
index c7ad4a5..a7b499b 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.4.1
+version=4.6.0
depends:
currency
ir
diff --git a/trytond_company.egg-info/PKG-INFO b/trytond_company.egg-info/PKG-INFO
index fe3fcf8..c76bc41 100644
--- a/trytond_company.egg-info/PKG-INFO
+++ b/trytond_company.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-company
-Version: 4.4.1
+Version: 4.6.0
Summary: Tryton module with companies and employees
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: issue_tracker at tryton.org
License: GPL-3
-Download-URL: http://downloads.tryton.org/4.4/
+Download-URL: http://downloads.tryton.org/4.6/
Description: trytond_company
===============
@@ -70,9 +70,9 @@ Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Office/Business
diff --git a/trytond_company.egg-info/SOURCES.txt b/trytond_company.egg-info/SOURCES.txt
index d37007e..6d667f9 100644
--- a/trytond_company.egg-info/SOURCES.txt
+++ b/trytond_company.egg-info/SOURCES.txt
@@ -1,20 +1,28 @@
+.drone.yml
+.hgtags
CHANGELOG
COPYRIGHT
INSTALL
LICENSE
MANIFEST.in
README
+__init__.py
+company.py
company.xml
+cron.py
cron.xml
-letter.odt
+letter.fodt
+model.py
+party.py
setup.py
+tox.ini
tryton.cfg
./__init__.py
./company.py
./company.xml
./cron.py
./cron.xml
-./letter.odt
+./letter.fodt
./model.py
./party.py
./tryton.cfg
@@ -69,6 +77,9 @@ locale/pt_BR.po
locale/ru.po
locale/sl.po
locale/zh_CN.po
+tests/__init__.py
+tests/test_company.py
+tests/tools.py
trytond_company.egg-info/PKG-INFO
trytond_company.egg-info/SOURCES.txt
trytond_company.egg-info/dependency_links.txt
diff --git a/trytond_company.egg-info/requires.txt b/trytond_company.egg-info/requires.txt
index e18fb76..946b510 100644
--- a/trytond_company.egg-info/requires.txt
+++ b/trytond_company.egg-info/requires.txt
@@ -1,6 +1,6 @@
-trytond_currency >= 4.4, < 4.5
-trytond_party >= 4.4, < 4.5
-trytond >= 4.4, < 4.5
+trytond_currency >= 4.6, < 4.7
+trytond_party >= 4.6, < 4.7
+trytond >= 4.6, < 4.7
[timezone]
pytz
--
tryton-modules-company
More information about the tryton-debian-vcs
mailing list