[IMP] account,sale,purchase,stock: Add groups to activate warnings
This commit is contained in:
@@ -85,6 +85,10 @@ class AccountConfigSettings(models.TransientModel):
|
||||
group_analytic_accounting = fields.Boolean(string='Analytic accounting',
|
||||
implied_group='analytic.group_analytic_accounting',
|
||||
help="Allows you to use the analytic accounting.")
|
||||
group_warning = fields.Selection([
|
||||
(0, 'All the partners can be used in invoices'),
|
||||
(1, 'An informative or blocking warning can be set on a partner')
|
||||
], "Warning", implied_group='account.group_warning')
|
||||
currency_exchange_journal_id = fields.Many2one('account.journal',
|
||||
related='company_id.currency_exchange_journal_id',
|
||||
string="Rate Difference Journal",)
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
</record>
|
||||
|
||||
<record id="group_warning" model="res.groups">
|
||||
<field name="name">An informative or blocking warning can be set on a partner</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
<data noupdate="1">
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<page name="warnings" position="inside">
|
||||
<group colspan="2" col="2">
|
||||
<group colspan="2" col="2" groups="account.group_warning">
|
||||
<separator string="Warning on the Invoice" colspan="4"/>
|
||||
<field name="invoice_warn" nolabel="1" />
|
||||
<field name="invoice_warn_msg" colspan="3" nolabel="1"
|
||||
|
||||
@@ -220,6 +220,7 @@
|
||||
<a href="https://www.odoo.com/page/accounting-features" target="_blank"> More Info</a>
|
||||
</div>
|
||||
</div>
|
||||
<field name="group_warning" widget="radio"/>
|
||||
</group>
|
||||
<group attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
|
||||
<label for="id" string="Taxes"/>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<page name="warnings" position="inside">
|
||||
<group colspan="2" col="2">
|
||||
<group colspan="2" col="2" groups="purchase.group_warning">
|
||||
<separator string="Warning on the Purchase Order" colspan="4"/>
|
||||
<field name="purchase_warn" nolabel="1" />
|
||||
<field name="purchase_warn_msg" colspan="3" nolabel="1"
|
||||
|
||||
@@ -537,7 +537,7 @@
|
||||
<field name="purchase_method" widget="radio" groups="purchase.group_purchase_manager"/>
|
||||
</field>
|
||||
<group name="description" position="after">
|
||||
<group string="Warning when Purchasing this Product" colspan="2">
|
||||
<group string="Warning when Purchasing this Product" colspan="2" groups="purchase.group_warning">
|
||||
<field name="purchase_line_warn" nolabel="1"/>
|
||||
<field name="purchase_line_warn_msg" colspan="3" nolabel="1"
|
||||
attrs="{'required':[('purchase_line_warn','!=','no-message')],'readonly':[('purchase_line_warn','=','no-message')]}"/>
|
||||
|
||||
@@ -40,6 +40,10 @@ class purchase_config_settings(osv.osv_memory):
|
||||
], "Advanced Calls for Tenders",
|
||||
implied_group='purchase.group_advance_bidding',
|
||||
help="""In the process of a public tendering, you can compare the tender lines and choose for each requested product which quantity you will buy from each bid."""),
|
||||
'group_warning': fields.selection([
|
||||
(0, 'All the products and the customers can be used in purchase orders'),
|
||||
(1, 'An informative or blocking warning can be set on a product or a customer')
|
||||
], "Warning", implied_group='purchase.group_warning'),
|
||||
'module_stock_dropshipping': fields.selection([
|
||||
(0, 'Suppliers always deliver to your warehouse(s)'),
|
||||
(1, "Allow suppliers to deliver directly to your customers")
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<field name="group_advance_purchase_requisition" widget="radio"
|
||||
attrs="{'invisible': [('module_purchase_requisition', '=', 0)]}"/>
|
||||
<field name="group_manage_vendor_price" widget="radio"/>
|
||||
<field name="group_warning" widget="radio"/>
|
||||
</group>
|
||||
<group string="Location & Warehouse">
|
||||
<field name="module_stock_dropshipping" widget="radio"/>
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
</record>
|
||||
|
||||
<record id="group_warning" model="res.groups">
|
||||
<field name="name">An informative or blocking warning can be set on a product or a customer</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
<data noupdate="1">
|
||||
|
||||
|
||||
@@ -49,6 +49,10 @@ class sale_configuration(osv.TransientModel):
|
||||
(0, 'Do not personalize sale orders and invoice reports'),
|
||||
(1, 'Personalize the sale orders and invoice report with categories, subtotals and page-breaks')
|
||||
], "Sale Reports Layout", implied_group='sale.group_sale_layout'),
|
||||
'group_warning': fields.selection([
|
||||
(0, 'All the products and the customers can be used in sale orders'),
|
||||
(1, 'An informative or blocking warning can be set on a product or a customer')
|
||||
], "Warning", implied_group='sale.group_warning'),
|
||||
'module_website_quote': fields.selection([
|
||||
(0, 'Print quotes or send by email'),
|
||||
(1, 'Send online quotations based on templates (advanced)')
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<field name="module_sale_margin" widget="radio"/>
|
||||
<field name="group_sale_layout" widget="radio"/>
|
||||
<field name="auto_done_setting" widget="radio"/>
|
||||
<field name="group_warning" widget="radio"/>
|
||||
<label for="sale_pricelist_setting" string="Sale Price"/>
|
||||
<div>
|
||||
<field name="sale_pricelist_setting" class="oe_inline" widget="radio" on_change="onchange_sale_price(sale_pricelist_setting)"/>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
</div>
|
||||
<page name="warnings" position="inside">
|
||||
<group colspan="2" col="2">
|
||||
<separator string="Warning on the Sales Order" colspan="4"/>
|
||||
<separator string="Warning on the Sales Order" colspan="4" groups="sale.group_warning"/>
|
||||
<field name="sale_warn" nolabel="1" />
|
||||
<field name="sale_warn_msg" colspan="3" nolabel="1"
|
||||
attrs="{'required':[('sale_warn','!=','no-message')],'readonly':[('sale_warn','=','no-message')]}"/>
|
||||
|
||||
@@ -581,7 +581,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<group name="description" position="after">
|
||||
<group string="Warning when Selling this Product" colspan="2">
|
||||
<group string="Warning when Selling this Product" colspan="2" groups="sale.group_warning">
|
||||
<field name="sale_line_warn" nolabel="1"/>
|
||||
<field name="sale_line_warn_msg" colspan="3" nolabel="1"
|
||||
attrs="{'required':[('sale_line_warn','!=','no-message')],'readonly':[('sale_line_warn','=','no-message')]}"/>
|
||||
|
||||
@@ -50,6 +50,10 @@
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
</record>
|
||||
|
||||
<record id="group_warning" model="res.groups">
|
||||
<field name="name">An informative or blocking warning can be set on a product or a customer</field>
|
||||
</record>
|
||||
|
||||
<record id="group_analytic_accounting" model="res.groups">
|
||||
<field name="name">Analytic Accounting for Sales</field>
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<page name="warnings" position="inside">
|
||||
<group colspan="2" col="2">
|
||||
<group colspan="2" col="2" groups="stock.group_warning">
|
||||
<separator string="Warning on the Picking" colspan="4"/>
|
||||
<field name="picking_warn" nolabel="1" />
|
||||
<field name="picking_warn_msg" colspan="3" nolabel="1"
|
||||
|
||||
@@ -97,6 +97,11 @@ class stock_config_settings(osv.osv_memory):
|
||||
], "Packages",
|
||||
implied_group='stock.group_tracking_lot',
|
||||
help="""This allows to manipulate packages. You can put something in, take something from a package, but also move entire packages and put them even in another package. """),
|
||||
'group_warning': fields.selection([
|
||||
(0, 'All the partners can be used in pickings'),
|
||||
(1, 'An informative or blocking warning can be set on a partner')
|
||||
], "Warning", implied_group='stock.group_warning'),
|
||||
|
||||
'group_stock_tracking_owner': fields.selection([
|
||||
(0, 'All products in your warehouse belong to your company'),
|
||||
(1, 'Manage consignee stocks (advanced)')
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
<field name="module_stock_dropshipping" widget="radio"/>
|
||||
<field name="module_stock_picking_wave" widget="radio"/>
|
||||
<field name="module_stock_calendar" widget="radio"/>
|
||||
<field name="group_warning" widget="radio"/>
|
||||
</group>
|
||||
<group string="Products">
|
||||
<field name="group_uom" widget="radio"/>
|
||||
|
||||
@@ -47,6 +47,10 @@
|
||||
<field name="name">Manage Different Stock Owners</field>
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
</record>
|
||||
|
||||
<record id="group_warning" model="res.groups">
|
||||
<field name="name">An informative or blocking warning can be set on a partner</field>
|
||||
</record>
|
||||
</data>
|
||||
<data noupdate="1">
|
||||
<!-- multi -->
|
||||
|
||||
Reference in New Issue
Block a user