Sylvain LE GAL
7 years ago
7 changed files with 119 additions and 98 deletions
-
6pos_cash_move_reason/__openerp__.py
-
21pos_cash_move_reason/demo/product_template.xml
-
38pos_cash_move_reason/i18n/fr.po
-
24pos_cash_move_reason/i18n/pos_cash_move_reason.pot
-
17pos_cash_move_reason/tests/test_pos_cash_move_reason.py
-
57pos_cash_move_reason/wizard/pos_box.py
-
16pos_cash_move_reason/wizard/pos_box.xml
@ -0,0 +1,21 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- |
|||
Copyright (C) 2018 - Today: GRAP (http://www.grap.coop) |
|||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
--> |
|||
<openerp><data> |
|||
|
|||
<record id="income_reason" model="product.template"> |
|||
<field name="name">Miscellaneous income</field> |
|||
<field name="income_pdt" eval="True" /> |
|||
<field name="property_account_income" ref="account.o_income"/> |
|||
</record> |
|||
|
|||
<record id="expense_reason" model="product.template"> |
|||
<field name="name">Miscellaneous expense</field> |
|||
<field name="expense_pdt" eval="True" /> |
|||
<field name="property_account_expense" ref="account.a_expense"/> |
|||
</record> |
|||
|
|||
</data></openerp> |
@ -1,26 +1,26 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
<openerp><data> |
|||
|
|||
<record model="ir.ui.view" id="cash_box_in_form"> |
|||
<field name="name">cash.box.in.form</field> |
|||
<field name="model">cash.box.in</field> |
|||
<field name="inherit_id" ref="account.cash_box_in_form" /> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='name']" position="before"> |
|||
<field name="product_id" required="1" class="oe_inline" /> |
|||
<field name="product_id" required="1" class="oe_inline" |
|||
domain="[('income_pdt', '=', True)]"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="cash_box_out_form"> |
|||
<field name="name">cash.box.out.form</field> |
|||
<field name="model">cash.box.out</field> |
|||
<field name="inherit_id" ref="account.cash_box_out_form" /> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='name']" position="before"> |
|||
<field name="product_id" required="1" class="oe_inline"/> |
|||
<field name="product_id" required="1" class="oe_inline" |
|||
domain="[('expense_pdt', '=', True)]"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</openerp> |
|||
|
|||
</data></openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue