This commit is contained in:
Mazen Abdo 2025-07-31 06:09:03 +03:00
parent 08cae63180
commit 7a5c7e28e5
5 changed files with 455 additions and 395 deletions

View File

@ -62,7 +62,7 @@ class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
coc_id = fields.Many2one('purchase.coc')
description = fields.Text(string="Order description")
# description = fields.Text(string="Order description")
name = fields.Text(string='Product description')

View File

@ -12,9 +12,9 @@
<field name="coc_ids" invisible="1"/>
</button>
</xpath>
<xpath expr="//field[@name='order_line']/tree//field[@name='name']" position="after">
<field name="description"/>
</xpath>
<!-- <xpath expr="//field[@name='order_line']/tree//field[@name='name']" position="after">-->
<!-- <field name="description"/>-->
<!-- </xpath>-->
<xpath expr="//field[@name='company_id']" position="after">
<!-- <field name="need_coc"/> -->
<!-- <field name="coc_id" readonly="1"/> -->

File diff suppressed because it is too large Load Diff

View File

@ -935,6 +935,7 @@ class PurchaseOrderLineCustom(models.Model):
choosen = fields.Boolean(string='Purchase', default=True)
department_name = fields.Many2one("hr.department", string="Department Name")
date_end = fields.Date(string="Date End")
description = fields.Text(string="Order description")
def _create_stock_moves(self, picking):
'''

View File

@ -298,6 +298,10 @@
attrs="{'invisible':[('state','in',('done','cancel','waiting', 'sign','purchase'))]}"
string="Choose All"/>
</xpath>
<xpath expr="//field[@name='order_line']/tree//field[@name='name']" position="after">
<field name="description"/>
</xpath>
<!-- delete Purchase Order-->
<xpath expr="//form//notebook//page//field//tree" position="attributes">
<attribute name="delete">true</attribute>