Fix liquidaciones. Cambia los creates a multi para evitar el warning.
Añade campos is desit y última fecha de liquidación a purchase.order. Se asegura de linkar la línea de invoice con la línea de purchase order.
This commit is contained in:
parent
4b1cae0b9e
commit
5a3b3772aa
5 changed files with 138 additions and 101 deletions
|
@ -19,9 +19,16 @@
|
|||
class="oe_stat_button"
|
||||
icon="fa-calendar"
|
||||
help="Realiza el informe de liquidación para éste proveedor."
|
||||
groups="stock.group_stock_manager"
|
||||
groups="account.group_account_invoice"
|
||||
attrs="{'invisible': ['|',('is_deposit', '=', False),('state', '!=', 'purchase')]}"
|
||||
/>
|
||||
</div>
|
||||
<xpath expr="//field[@name='partner_ref']" position="after">
|
||||
<span><label for="is_deposit" /></span>
|
||||
<span><field name="is_deposit" /></span>
|
||||
<span><label for="deposit_last_liquidation_date" /></span>
|
||||
<span><field name="deposit_last_liquidation_date" /></span>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</group>
|
||||
<group attrs="{'invisible': [('deposit_sale_accept', '!=', True)]}">
|
||||
<field name="deposit_sale_location_id" readonly="1" />
|
||||
<field name="deposit_sale_last_liquidation_date" readonly="1" />
|
||||
<field name="deposit_sale_last_liquidation_date" readonly="0" />
|
||||
<!-- <button string="Current Stock"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
|
@ -48,7 +48,7 @@
|
|||
</group>
|
||||
<group attrs="{'invisible': [('deposit_buy_accept', '!=', True)]}">
|
||||
<field name="deposit_buy_location_id" readonly="1" />
|
||||
<field name="deposit_buy_last_liquidation_date" readonly="1" />
|
||||
<field name="deposit_buy_last_liquidation_date" readonly="0" />
|
||||
<!-- <button string="Current Stock"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue