添加功能
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
<field name="due_date" readonly="1"/>
|
||||
<field name="due_date_end" readonly="1"/>
|
||||
<field name="payout_date" readonly="1"/>
|
||||
<field name="management_type_id" readonly="1"/>
|
||||
<field name="original_amount" readonly="1"/>
|
||||
<field name="discount_amount" readonly="1"/>
|
||||
<field name="delivered1" readonly="1"/>
|
||||
<field name="submitted" readonly="1"/>
|
||||
<field name="management_type_id" readonly="1"/>
|
||||
<field name="multiplier" column_invisible="1"/>
|
||||
<field name="is_push" optional="hide" readonly="1"/>
|
||||
<field name="reconciliation_time" optional="hide" readonly="1"/>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<field name="bank_branch"/>
|
||||
<field name="name_account" />
|
||||
<field name="original_amount"/>
|
||||
<field name="yes_amount"/>
|
||||
<field name="yes_amount" string="已对"/>
|
||||
<field name="no_amount" />
|
||||
<field name="your_own_account" />
|
||||
<field name="your_own_unit" />
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<field name="model">yuthon.epitope.values</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="电水表位置" editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="sequence"/>
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
|
||||
@@ -43,6 +43,7 @@ class PropertyBankStatements(models.Model):
|
||||
|
||||
contract_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
|
||||
contract_ids = fields.Many2many('property.lease.contract', string="租赁合同审批")
|
||||
property_name = fields.Char(string="物业名称")
|
||||
accounts_id = fields.Many2one('property.accounts.approval', string="关联生成应收审批单")
|
||||
|
||||
def batch_revocation(self):
|
||||
@@ -393,6 +394,13 @@ class PropertyAccountsReceivable(models.Model):
|
||||
|
||||
actual_coping = fields.Float(string="实际应付")
|
||||
|
||||
def update_lessee_id(self):
|
||||
accounts_ids = self.env["property.accounts.receivable"].browse(
|
||||
self._context.get('active_ids', self._context.get('active_id')))
|
||||
for rec in accounts_ids:
|
||||
rec.lessee_id = rec.contract_id.lessee_id
|
||||
|
||||
|
||||
@api.depends('management_type_id')
|
||||
def _compute_is_rent(self):
|
||||
for rec in self:
|
||||
|
||||
@@ -293,11 +293,11 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='payout_date']" position="after">
|
||||
<field name="is_rent" column_invisible="1"/>
|
||||
<field name="property_name"/>
|
||||
<field name="property_ids" options="{'no_create': True}" widget="many2many_tags" column_invisible="1"/>
|
||||
<field name="lessee_id" options="{'no_create': True}" readonly="1"/>
|
||||
<field name="title_deed" readonly="1"/>
|
||||
<field name="company_id" column_invisible="1"/>
|
||||
<field name="property_ids" options="{'no_create': True}" widget="many2many_tags" column_invisible="1"/>
|
||||
<field name="property_name"/>
|
||||
<field name="contract_id" string="合同编号" options="{'no_create': True}"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='receivable_log']" position="after">
|
||||
|
||||
Reference in New Issue
Block a user