feat: Se agregan campos para limite de descuadre y cuenta por cobrar por descuadre
This commit is contained in:
parent
2044abc6f9
commit
d96d3c6023
@ -6,10 +6,11 @@ from . import device
|
||||
from . import sale
|
||||
from . import statement
|
||||
from . import user
|
||||
|
||||
from . import configuration_statement
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
configuration_statement.Configuration,
|
||||
statement.Journal,
|
||||
statement.Statement,
|
||||
statement.Line,
|
||||
|
12
locale/es.po
12
locale/es.po
@ -170,6 +170,14 @@ msgctxt "field:line_invoice.pay,description:"
|
||||
msgid "Description"
|
||||
msgstr "Descripción"
|
||||
|
||||
msgctxt "field:sale.cash_closures,mismatch_limit:"
|
||||
msgid "Mismatch Limit"
|
||||
msgstr "Limite de Descuadre"
|
||||
|
||||
msgctxt "field:sale.cash_closures,account_mismatch_charge:"
|
||||
msgid "Account Mismatch Charge"
|
||||
msgstr "Cuenta a Cobrar para Descuadre"
|
||||
|
||||
msgctxt "model:close.statement.done,name:"
|
||||
msgid "Close Statement"
|
||||
msgstr "Cerrar extracto"
|
||||
@ -298,6 +306,10 @@ msgctxt "model:ir.sequence.type,name:"
|
||||
msgid "Sale Pos"
|
||||
msgstr "Venta TPV"
|
||||
|
||||
msgctxt "model:ir.ui.menu,name:menu_configuration_closure"
|
||||
msgid "Configuration Closures"
|
||||
msgstr "Configuración de Cierres"
|
||||
|
||||
msgctxt "model:ir.ui.menu,name:menu_close_statement"
|
||||
msgid "Close Statements"
|
||||
msgstr "Cerrar extractos"
|
||||
|
@ -372,7 +372,6 @@ class StatementLine(ModelView):
|
||||
def default_company():
|
||||
return Transaction().context.get('company')
|
||||
|
||||
|
||||
@fields.depends('end_balance', 'real_cash', 'mismatch')
|
||||
def on_change_real_cash(self):
|
||||
self.mismatch = self.real_cash - self.end_balance
|
||||
|
@ -4,12 +4,30 @@ The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<record model="ir.action.act_window" id="act_configuration_closures_form">
|
||||
<field name="name">Configuration Closures</field>
|
||||
<field name="res_model">sale.cash_closures</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="configuration_closures_view_form">
|
||||
<field name="model">sale.cash_closures</field>
|
||||
<field name="type">form</field>
|
||||
<field name="name">configuration_closures_form</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_prospect_form_view1">
|
||||
<field name="sequence" eval="10"/>
|
||||
<field name="view" ref="configuration_closures_view_form"/>
|
||||
<field name="act_window" ref="act_configuration_closures_form"/>
|
||||
</record>
|
||||
<menuitem
|
||||
parent="sale.menu_configuration"
|
||||
sequence="10"
|
||||
id="menu_configuration_closure"
|
||||
action="act_configuration_closures_form"/>
|
||||
<record model="ir.action.act_window" id="act_sale_statement_form">
|
||||
<field name="name">Statements</field>
|
||||
<field name="res_model">account.statement</field>
|
||||
<field name="domain" eval="[('users', '=', Eval('_user'))]"
|
||||
pyson="1"/>
|
||||
pyson="1"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_sale_statement_form_view1">
|
||||
<field name="sequence" eval="10"/>
|
||||
@ -180,4 +198,4 @@ copyright notices and license terms. -->
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
</tryton>
|
||||
|
Loading…
Reference in New Issue
Block a user