[IMP] purchase: move settings for purchase requisition

purchase_requisition install stock, but when doing services you might
still want the option. This option was only display when stock
is installed. This commit changes this to make it visible when
purchase is installed.
The option is better visible and installing a new apps, then
hidden (or difficult to find).
This commit is contained in:
jem-odoo
2018-05-30 16:17:38 +02:00
parent 7657150135
commit 075cafa828
4 changed files with 15 additions and 17 deletions
@@ -24,6 +24,7 @@ class ResConfigSettings(models.TransientModel):
group_manage_vendor_price = fields.Boolean("Vendor Pricelists",
implied_group="purchase.group_manage_vendor_price")
module_account_3way_match = fields.Boolean("3-way matching: purchases, receptions and bills")
module_purchase_requisition = fields.Boolean("Purchase Agreements")
po_lead = fields.Float(related='company_id.po_lead')
use_po_lead = fields.Boolean(
string="Security Lead Time for Purchase",
@@ -54,6 +54,20 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box" title="Calls for tenders are used when you want to generate requests for quotations to several vendors for a given set of products. You can configure per product if you directly do a Request for Quotation to one vendor or if you want a Call for Tenders to compare offers from several vendors.">
<div class="o_setting_left_pane">
<field name="module_purchase_requisition"/>
</div>
<div class="o_setting_right_pane">
<label for="module_purchase_requisition"/>
<div class="text-muted">
Manage your purchase agreements (call for tenders, blanket orders)
</div>
<div class="content-group" attrs="{'invisible': [('module_purchase_requisition', '=', False)]}">
<div id="use_purchase_requisition"/>
</div>
</div>
</div>
</div>
<h2>Invoicing</h2>
<div class="row mt16 o_settings_container">
@@ -7,7 +7,6 @@ from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
module_purchase_requisition = fields.Boolean("Purchase Agreements")
module_stock_dropshipping = fields.Boolean("Dropshipping")
is_installed_sale = fields.Boolean(string="Is the Sale Module Installed")
@@ -24,22 +24,6 @@
</div>
</div>
</xpath>
<xpath expr="//div[@name='purchase_setting_container']" position="inside">
<div class="col-xs-12 col-md-6 o_setting_box" title="Calls for tenders are used when you want to generate requests for quotations to several vendors for a given set of products. You can configure per product if you directly do a Request for Quotation to one vendor or if you want a Call for Tenders to compare offers from several vendors.">
<div class="o_setting_left_pane">
<field name="module_purchase_requisition"/>
</div>
<div class="o_setting_right_pane">
<label for="module_purchase_requisition"/>
<div class="text-muted">
Manage your purchase agreements (call for tenders, blanket orders)
</div>
<div class="content-group" attrs="{'invisible': [('module_purchase_requisition', '=', False)]}">
<div id="use_purchase_requisition"/>
</div>
</div>
</div>
</xpath>
</field>
</record>