[IMP] better sale view

This commit is contained in:
Fabien Pinckaers
2015-08-29 16:43:30 +02:00
parent 54cd101ff4
commit e9795c884a
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -120,6 +120,10 @@ class SaleOrder(models.Model):
product_id = fields.Many2one('product.product', related='order_line.product_id', string='Product')
@api.multi
def button_dummy(self):
return True
@api.multi
def unlink(self):
for order in self:
+3 -3
View File
@@ -292,10 +292,10 @@
<group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
<field name="amount_untaxed" widget='monetary' options="{'currency_field': 'currency_id'}"/>
<field name="amount_tax" widget='monetary' options="{'currency_field': 'currency_id'}"/>
<div class="oe_subtotal_footer_separator oe_inline">
<div class="oe_subtotal_footer_separator oe_inline o_td_label">
<label for="amount_total" />
<!-- <button name="button_dummy"
states="draft,sent" string="(update)" type="object" class="oe_edit_only oe_link"/> -->
<button name="button_dummy"
states="draft,sent" string="(update)" type="object" class="oe_edit_only oe_link"/>
</div>
<field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
</group>