Add fields in company model to register the information of the 'Register of
Companies' (Book, Volume, Folio,...)
This commit is contained in:
parent
945ab235d6
commit
deb39f9457
|
@ -2,6 +2,7 @@
|
|||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.pool import Pool
|
||||
from . import account
|
||||
from . import company
|
||||
from . import currency
|
||||
from . import invoice
|
||||
from . import party
|
||||
|
@ -17,6 +18,7 @@ def register():
|
|||
account.Period,
|
||||
account.AccountType,
|
||||
account.AccountTypeTemplate,
|
||||
company.Company,
|
||||
currency.Currency,
|
||||
invoice.Invoice,
|
||||
invoice.InvoiceLine,
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class Company(metaclass=PoolMeta):
|
||||
__name__ = 'company.company'
|
||||
|
||||
registration_data_location = fields.Char("Register of companies location",
|
||||
translate=True, help="E.g.: Reg. M. de Barcelona")
|
||||
registration_data_book = fields.Char("Book")
|
||||
registration_data_sheet = fields.Char("Sheet")
|
||||
registration_data_folio = fields.Char("Folio")
|
||||
registration_data_section = fields.Char("Section", translate=True)
|
||||
registration_data_volume = fields.Char("Volume")
|
||||
registration_data_additional = fields.Char("Other registration data",
|
||||
translate=True)
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="company_view_form">
|
||||
<field name="model">company.company</field>
|
||||
<field name="inherit" ref="company.company_view_form"/>
|
||||
<field name="name">company_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
36
locale/ca.po
36
locale/ca.po
|
@ -70,6 +70,34 @@ msgctxt "field:account.tax.template,report_description:"
|
|||
msgid "Report Description"
|
||||
msgstr "Descripció informe"
|
||||
|
||||
msgctxt "field:company.company,registration_data_location:"
|
||||
msgid "Register of companies location"
|
||||
msgstr "Lloc Registre Mercantil"
|
||||
|
||||
msgctxt "field:company.company,registration_data_book:"
|
||||
msgid "Book"
|
||||
msgstr "Llibre"
|
||||
|
||||
msgctxt "field:company.company,registration_data_sheet:"
|
||||
msgid "Sheet"
|
||||
msgstr "Pàgina"
|
||||
|
||||
msgctxt "field:company.company,registration_data_folio:"
|
||||
msgid "Folio"
|
||||
msgstr "Foli"
|
||||
|
||||
msgctxt "field:company.company,registration_data_section:"
|
||||
msgid "Section"
|
||||
msgstr "Secció"
|
||||
|
||||
msgctxt "field:company.company,registration_data_volume:"
|
||||
msgid "Volume"
|
||||
msgstr "Volum"
|
||||
|
||||
msgctxt "field:company.company,registration_data_additional:"
|
||||
msgid "Other registration data"
|
||||
msgstr "Altres dades registrals"
|
||||
|
||||
msgctxt "help:account.account.type,customer_balance:"
|
||||
msgid ""
|
||||
"Check to be able to use this balance account in customer invoice lines."
|
||||
|
@ -124,6 +152,10 @@ msgid "The possible Recargo Equivalencia related to this tax"
|
|||
msgstr ""
|
||||
"El possible impost de Recàrrec Equivalència relacionat amb aquest impost"
|
||||
|
||||
msgctxt "help:company.company,registration_data_location:"
|
||||
msgid "E.g.: Reg. M. de Barcelona"
|
||||
msgstr "Ex.: Reg. M. de Barcelona"
|
||||
|
||||
msgctxt "model:account.tax.template,report_description:iva_ISP_compras"
|
||||
msgid ""
|
||||
"Operación con inversión del sujeto pasivo, artículo 84. Uno 2º c) de la ley "
|
||||
|
@ -179,3 +211,7 @@ msgstr "Codis"
|
|||
msgctxt "view:account.tax:"
|
||||
msgid "Codes"
|
||||
msgstr "Codis"
|
||||
|
||||
msgctxt "view:company.company:"
|
||||
msgid "Registration Data"
|
||||
msgstr "Dades Registrals"
|
||||
|
|
36
locale/es.po
36
locale/es.po
|
@ -70,6 +70,34 @@ msgctxt "field:account.tax.template,report_description:"
|
|||
msgid "Report Description"
|
||||
msgstr "Descripción informe"
|
||||
|
||||
msgctxt "field:company.company,registration_data_location:"
|
||||
msgid "Register of companies location"
|
||||
msgstr "Lugar Registro Mercantil"
|
||||
|
||||
msgctxt "field:company.company,registration_data_book:"
|
||||
msgid "Book"
|
||||
msgstr "Libro"
|
||||
|
||||
msgctxt "field:company.company,registration_data_sheet:"
|
||||
msgid "Sheet"
|
||||
msgstr "Hoja"
|
||||
|
||||
msgctxt "field:company.company,registration_data_folio:"
|
||||
msgid "Folio"
|
||||
msgstr "Folio"
|
||||
|
||||
msgctxt "field:company.company,registration_data_section:"
|
||||
msgid "Section"
|
||||
msgstr "Sección"
|
||||
|
||||
msgctxt "field:company.company,registration_data_volume:"
|
||||
msgid "Volume"
|
||||
msgstr "Tomo"
|
||||
|
||||
msgctxt "field:company.company,registration_data_additional:"
|
||||
msgid "Other registration data"
|
||||
msgstr "Otros datos registrales"
|
||||
|
||||
msgctxt "help:account.account.type,customer_balance:"
|
||||
msgid ""
|
||||
"Check to be able to use this balance account in customer invoice lines."
|
||||
|
@ -124,6 +152,10 @@ msgid "The possible Recargo Equivalencia related to this tax"
|
|||
msgstr ""
|
||||
"El posible impuesto de Recargo Equivalencia relacionado a este impuesto"
|
||||
|
||||
msgctxt "help:company.company,registration_data_location:"
|
||||
msgid "E.g.: Reg. M. de Barcelona"
|
||||
msgstr "Ej.: Reg. M. de Barcelona"
|
||||
|
||||
msgctxt "model:account.tax.template,report_description:iva_ISP_compras"
|
||||
msgid ""
|
||||
"Operación con inversión del sujeto pasivo, artículo 84. Uno 2º c) de la ley "
|
||||
|
@ -179,3 +211,7 @@ msgstr "Códigos"
|
|||
msgctxt "view:account.tax:"
|
||||
msgid "Codes"
|
||||
msgstr "Códigos"
|
||||
|
||||
msgctxt "view:company.company:"
|
||||
msgid "Registration Data"
|
||||
msgstr "Datos Registrales"
|
||||
|
|
|
@ -4,12 +4,14 @@ depends:
|
|||
ir
|
||||
account
|
||||
account_invoice
|
||||
company
|
||||
extra_depends:
|
||||
account_asset
|
||||
account_product
|
||||
account_product_accounting
|
||||
xml:
|
||||
account.xml
|
||||
company.xml
|
||||
messages.xml
|
||||
view.xml
|
||||
tax.xml
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/notebook" position="inside">
|
||||
<page string="Registration Data" id="registrationdata">
|
||||
<label name="registration_data_location"/>
|
||||
<field name="registration_data_location" colspan="3"/>
|
||||
<label name="registration_data_volume"/>
|
||||
<field name="registration_data_volume"/>
|
||||
<label name="registration_data_book"/>
|
||||
<field name="registration_data_book"/>
|
||||
<label name="registration_data_folio"/>
|
||||
<field name="registration_data_folio"/>
|
||||
<label name="registration_data_section"/>
|
||||
<field name="registration_data_section"/>
|
||||
<label name="registration_data_sheet"/>
|
||||
<field name="registration_data_sheet"/>
|
||||
<label name="registration_data_additional"/>
|
||||
<field name="registration_data_additional"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
Loading…
Reference in New Issue