|
|
@ -34,8 +34,8 @@ |
|
|
|
class="oe_link" |
|
|
|
groups="base.group_no_one" |
|
|
|
/> |
|
|
|
<button name="contract.act_recurring_invoices" |
|
|
|
type="action" |
|
|
|
<button name="button_show_recurring_invoices" |
|
|
|
type="object" |
|
|
|
attrs="{'invisible': [('recurring_invoices','!=',True)]}" |
|
|
|
string="⇒ Show recurring invoices" |
|
|
|
class="oe_link" |
|
|
@ -44,6 +44,7 @@ |
|
|
|
<group col="4" attrs="{'invisible': [('recurring_invoices','!=',True)]}"> |
|
|
|
<field name="contract_template_id" colspan="4" domain="['|', ('contract_type', '=', contract_type), ('contract_type', '=', False)]" context="{'default_contract_type': contract_type}"/> |
|
|
|
<field name="journal_id" |
|
|
|
domain="[('type', '=', contract_type),('company_id', '=', company_id)]" |
|
|
|
attrs="{'required': [('recurring_invoices', '=', True)]}" |
|
|
|
/> |
|
|
|
<field name="pricelist_id"/> |
|
|
@ -111,7 +112,7 @@ |
|
|
|
<attribute name="context">{'default_customer': True, 'default_supplier': False}</attribute> |
|
|
|
</field> |
|
|
|
<field name="journal_id" position="attributes"> |
|
|
|
<attribute name="domain">[('type', '=', 'sale')]</attribute> |
|
|
|
<attribute name="domain">[('type', '=', 'sale'),('company_id', '=', company_id)]</attribute> |
|
|
|
</field> |
|
|
|
<field name="product_id" position="attributes"> |
|
|
|
<attribute name="domain">[('sale_ok', '=', True)]</attribute> |
|
|
@ -132,7 +133,7 @@ |
|
|
|
<attribute name="context">{'default_customer': False, 'default_supplier': True}</attribute> |
|
|
|
</field> |
|
|
|
<field name="journal_id" position="attributes"> |
|
|
|
<attribute name="domain">[('type', '=', 'purchase')]</attribute> |
|
|
|
<attribute name="domain">[('type', '=', 'purchase'),('company_id', '=', company_id)]</attribute> |
|
|
|
</field> |
|
|
|
<field name="product_id" position="attributes"> |
|
|
|
<attribute name="domain">[('purchase_ok', '=', True)]</attribute> |
|
|
|