|
|
@ -35,8 +35,8 @@ |
|
|
|
groups="base.group_no_one" |
|
|
|
args='0' |
|
|
|
/> |
|
|
|
<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" |
|
|
@ -45,6 +45,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"/> |
|
|
@ -112,7 +113,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> |
|
|
@ -133,7 +134,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> |
|
|
|