mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-23 16:42:05 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -1,29 +1,38 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="product_template_view_tree" model="ir.ui.view">
|
||||
<field name="name">product.template.tree</field>
|
||||
<record id="product_template_list_view_sellable_inherit" model="ir.ui.view">
|
||||
<field name="name">product.template.list.sellable.inherit</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Products" sample="1">
|
||||
<field name="default_code"/>
|
||||
<field name="name"/>
|
||||
<field name="list_price"/>
|
||||
<field name="taxes_id" widget="many2many_tags"/>
|
||||
<field name="supplier_taxes_id" widget="many2many_tags"/>
|
||||
<field name="activity_exception_decoration" widget="activity_exception"/>
|
||||
</tree>
|
||||
</field>
|
||||
<field name="inherit_id" ref="product.product_template_list_view_sellable"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='list_price']" position="after">
|
||||
<field name="taxes_id" widget="many2many_tax_tags" context="{'search_default_domestictax': True, 'append_fields': ['company_id']}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_template_list_view_purchasable_inherit" model="ir.ui.view">
|
||||
<field name="name">product.template.list.purchasable.inherit</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_list_view_purchasable"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='standard_price']" position="after">
|
||||
<field name="supplier_taxes_id" widget="many2many_tax_tags" context="{'search_default_domestictax': True, 'append_fields': ['company_id']}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_product_action_sellable" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">kanban,tree,form,activity</field>
|
||||
<field name="path">customer-products</field>
|
||||
<field name="view_ids" eval="[Command.clear(),
|
||||
Command.create({'view_mode': 'kanban'}),
|
||||
Command.create({'view_mode': 'list', 'view_id': ref('account.product_template_list_view_sellable_inherit')}),
|
||||
Command.create({'view_mode': 'form'}),
|
||||
Command.create({'view_mode': 'activity'})]"/>
|
||||
<field name="context">{'search_default_filter_to_sell': 1}</field>
|
||||
<field name="view_id" ref="product_template_view_tree"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create a new sellable product
|
||||
|
|
@ -33,11 +42,14 @@
|
|||
|
||||
<record id="product_product_action_purchasable" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">kanban,tree,form,activity</field>
|
||||
<field name="path">vendor-products</field>
|
||||
<field name="context">{'search_default_filter_to_purchase': 1}</field>
|
||||
<field name="view_id" ref="product_template_view_tree"/>
|
||||
<field name="view_ids" eval="[Command.clear(),
|
||||
Command.create({'view_mode': 'kanban'}),
|
||||
Command.create({'view_mode': 'list', 'view_id': ref('account.product_template_list_view_purchasable_inherit')}),
|
||||
Command.create({'view_mode': 'form'}),
|
||||
Command.create({'view_mode': 'activity'})]"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create a new purchasable product
|
||||
|
|
@ -51,33 +63,61 @@
|
|||
<field name="priority">5</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='purchase']" position="attributes">
|
||||
<attribute name="invisible">0</attribute>
|
||||
<div name="options" position='inside'>
|
||||
<span class="d-inline-flex" invisible="type == 'combo'">
|
||||
<field name="purchase_ok"/>
|
||||
<label for="purchase_ok"/>
|
||||
</span>
|
||||
</div>
|
||||
<xpath expr="//field[@name='company_id']" position="after">
|
||||
<field name="fiscal_country_codes" invisible="1"/>
|
||||
</xpath>
|
||||
<page name="inventory" position="after">
|
||||
<page string="Accounting" name="invoicing" groups="account.group_account_readonly,account.group_account_invoice">
|
||||
<page string="Accounting" name="invoicing" groups="account.group_account_readonly">
|
||||
<group name="properties" groups="account.group_account_readonly">
|
||||
<group string="Receivables">
|
||||
<field name="property_account_income_id"
|
||||
<group string="Cost and Revenue">
|
||||
<field name="property_account_income_id" placeholder="From Category"
|
||||
groups="account.group_account_readonly"/>
|
||||
</group>
|
||||
<group string="Payables" name="payables">
|
||||
<field name="property_account_expense_id"
|
||||
<field name="property_account_expense_id" placeholder="From Category"
|
||||
groups="account.group_account_readonly"/>
|
||||
</group>
|
||||
</group>
|
||||
<group name="accounting" groups="account.group_account_readonly,account.group_account_invoice"/>
|
||||
</page>
|
||||
</page>
|
||||
<xpath expr="//div[@name='pricing']" position="after">
|
||||
<field name="taxes_id" widget="many2many_tags" context="{'default_type_tax_use':'sale', 'search_default_sale': 1, 'search_default_service': type == 'service', 'search_default_goods': type == 'consu'}"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='pricing']" position="inside">
|
||||
<span class="ms-2"/><field name="tax_string"/>
|
||||
</xpath>
|
||||
<group name="bill" position="inside">
|
||||
<field name="supplier_taxes_id" widget="many2many_tags" context="{'default_type_tax_use':'purchase', 'search_default_purchase': 1, 'search_default_service': type == 'service', 'search_default_goods': type == 'consu'}"/>
|
||||
</group>
|
||||
<div name="list_price_uom" position="after">
|
||||
<label for="taxes_id" invisible="type == 'combo'"/>
|
||||
<div name="taxes_div" class="o_row" invisible="type == 'combo'">
|
||||
<field
|
||||
name="taxes_id"
|
||||
widget="many2many_tax_tags"
|
||||
class="oe_inline"
|
||||
context="{
|
||||
'default_type_tax_use': 'sale',
|
||||
'search_default_sale': 1,
|
||||
'search_default_service': type == 'service',
|
||||
'search_default_goods': type == 'consu',
|
||||
'search_default_domestictax': 1,
|
||||
'append_fields': ['company_id'],
|
||||
}"
|
||||
/>
|
||||
<field name="tax_string" class="oe_inline"/>
|
||||
</div>
|
||||
</div>
|
||||
<div name="standard_price_uom" position="after">
|
||||
<field name="supplier_taxes_id"
|
||||
invisible="not purchase_ok or type == 'combo'"
|
||||
widget="many2many_tax_tags"
|
||||
context="{
|
||||
'default_type_tax_use':'purchase',
|
||||
'search_default_purchase': 1,
|
||||
'search_default_service': type == 'service',
|
||||
'search_default_goods': type == 'consu',
|
||||
'search_default_domestictax': 1,
|
||||
'append_fields': ['company_id'],
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue